<?php
$app = \Realisation\App::getInstance();
$app->register(new Silex\Provider\DoctrineServiceProvider(), array(
    'db.options' => array (
        'driver'    => 'pdo_mysql',
        'host'      => $app['params.db.host'],
        'dbname'    => $app['params.db.name'],
        'user'      => $app['params.db.user'],
        'password'  => $app['params.db.password'],
        'charset'   => 'utf8',
        'driverOptions' => array(
            PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
        ),
    ),
));